<div class="m-tab s-tab">
	<h2 class="u-tt">推荐内容管理</h2>
	<div class="filter">
		<form method="get" action="{$url|'AdminPositionRelation/index'}">
			<input name="r" type="hidden" value="duxcms/AdminPositionRelation/index" />
			<select class="u-slt" name="pos_id" id="pos_id">
				<option value="0">==推荐位==</option>
				<!--{loop="$positionList $key $vo"}-->
				<option value="{$vo['pos_id']}" {if="$_GET['pos_id']==$vo['pos_id']"}selected="selected"{/if} >{$vo.name}</option>
				<!--{/loop}-->
			</select>
			<select class="u-slt" name="class_id" id="class_id">
				<option value="0">==栏目==</option>
				<!--{loop="$categoryList $key $vo"}-->
				<option value="{$vo['class_id']}" {if="$_GET['class_id']==$vo['class_id']"}selected="selected"{/if} >{$vo.cname}</option>
				<!--{/loop}-->
			</select>
			<button class="u-btn" type="submit">筛选</button>
		</form>
	</div>
	<ul>
		<li class="z-crt"><a href="{$url|'AdminPositionRelation/index'}">推荐内容列表</a></li>
	</ul>
</div>
<table class="m-table m-table-row" id="table">
	<thead class="m-table-thead s-table-thead">
		<tr>
			<th class="cola">ID</th>
			<th>标题(自定义优先)</th>
			<th class="cola">推荐位</th>
			<th class="cola">排序</th>
			<th class="colb">操作</th>
		</tr>
	</thead>
	<tbody>
		<!--{loop="$list $key $vo"}-->
		<tr>
			<td>{$vo.data_id}</td>
			<td>{$vo.title}</td>
			<td>{$vo.pos_name}</td>
			<td>{$vo.sequence}</td>
			<td><a href="<?php echo url('AdminPositionRelation/edit',array('data_id'=>$vo['data_id'])); ?>">编辑</a> / <a href="javascript:;" data="{$vo.data_id}" class="u-del">删除</a></td>
		</tr>
		<!--{/loop}-->
	</tbody>
</table>
<div class="m-table-tool">
	<div class="m-page"> {$page} </div>
</div>
<script>
Do.ready('base','dialog',function() {
	$('#table').duxTable({selectAll:'#selectAll',deleteUrl:'{$url|"AdminPositionRelation/del"}'});
});
</script>